//
//  ZPZNetRequest+getClientList.m
//  项目二网络请求
//
//  Created by 张峥 on 16/7/23.
//  Copyright © 2016年 张峥. All rights reserved.
//

#import "ZPZNetRequest+getClientList.h"

@implementation ZPZNetRequest (getClientList)

+ (void)getClientListPageNum:(NSString *)pageNum PageSize:(NSString *)pageSize UserId:(NSString *)userId comletion:(ZLReqComletion)comletion{
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    if (pageSize != nil && pageSize != nil && userId!= nil) {
        [numDic setObject:pageNum forKey:@"pageNum"];
        [numDic setObject:pageSize forKey:@"pageSize"];
        [numDic setObject:userId forKey:@"userId"];
    }
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appPickList/getClientList" requestType:ZLApRequestPost Comletion:comletion];
}

+ (void)getClientDetailId:(NSString *)Id comletion:(ZLReqComletion)comletion{
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    if (Id != nil) {
        [numDic setObject:Id forKey:@"id"];
    }
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appPickList/getClientDetail" requestType:ZLApRequestPost Comletion:comletion];
}

+ (void)getsubmitOrderId:(NSString *)Id Name:(NSString *)name Tel:(NSString *)tel Status:(NSString *)status UserId:(NSString *)userId AmountList:(NSArray *)amountList ShoppingList:(NSArray *)shoppingList comletion:(ZLReqComletion)comletion{
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    if (Id != nil && name != nil && tel != nil && shoppingList != nil && userId != nil && amountList != nil && userId != nil ) {
        [numDic setObject:Id forKey:@"id"];
        [numDic setObject:name forKey:@"name"];
        [numDic setObject:tel forKey:@"tel"];
        [numDic setObject:status forKey:@"status"];
        [numDic setObject:amountList forKey:@"amountList"];
        [numDic setObject:userId forKey:@"userId"];
        [numDic setObject:shoppingList forKey:@"shoppingList"];
    }
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appPickList/submitOrder" requestType:ZLApRequestPost Comletion:comletion];
    
}

+ (void)getlaterSubmitOrderId:(NSString *)Id ShoppingList:(NSString *)shoppingList UserId:(NSString *)userId AmountList:(NSString *)amountList comletion:(ZLReqComletion)comletion{
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    if (Id != nil && userId != nil && shoppingList != nil && userId != nil && amountList != nil) {
        [numDic setObject:Id forKey:@"id"];
        [numDic setObject:userId forKey:@"userId"];
        [numDic setObject:amountList forKey:@"amountList"];
        [numDic setObject:shoppingList forKey:@"shoppingList"];
    }
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appPickList/laterSubmitOrder" requestType:ZLApRequestPost Comletion:comletion];
    
}

+ (void)getOrderProgressKeywords:(NSString *)keywords PageSize:(NSString *)pageSize UserId:(NSString *)userId PageNum:(NSString *)pageNum comletion:(ZLReqComletion)comletion{
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    if (keywords != nil && pageSize != nil && userId != nil && pageNum != nil) {
        [numDic setObject:keywords forKey:@"keywords"];
        [numDic setObject:userId forKey:@"userId"];
        [numDic setObject:pageNum forKey:@"pageNum"];
        [numDic setObject:pageSize forKey:@"pageSize"];
    }
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appServiceSchedule/getOrderServiceProgressByCondition" requestType:ZLApRequestPost Comletion:comletion];
}



@end
